package com.ruoyi.web.entity;


import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.NotField;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.base.IEntity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author ：wang.j.f
 * @description：网格通上报汇总统计
 * @date ：Created in 2021/6/27 10:35
 * @modified By：
 * @version: 1.0$
 */
@Data
@FluentMybatis
public class ReportSummeryEntity implements IEntity {

    @ExcelIgnore
    private Long id;
    // 单位名称
    @ExcelProperty(value = "单位名称", index = 0)
    private String unitName;
    // 网格长数量
    @ExcelProperty(value = "网格长数量", index = 1)
    private Integer wgzNum;
    // 周应完成数
    @ExcelProperty(value = "周应完成数", index = 2)
    private Integer shouldDoneNumWeekly;
    // 实际周完成数
    @ExcelProperty(value = "实际周完成数", index = 3)
    private Integer totalReportNum;
    // 有效上报数
    @ExcelProperty(value = "有效上报数", index = 4)
    private Integer effectiveReportNum;
    // 有效上报率
    @ExcelIgnore
    private BigDecimal effectiveReportRate;
    @NotField
    @ExcelProperty(value = "有效上报率", index = 5)
    private String effectiveReportRateStr;
    // 有效完成率
    @ExcelIgnore
    private BigDecimal effectiveCompleteRate;
    @NotField
    @ExcelProperty(value = "有效完成率", index = 6)
    private String effectiveCompleteRateStr;
    // 上报时间
    @ExcelProperty(value = "上报时间", index = 7)
    private String reportTime;
    // 统计类型
    @ExcelIgnore
    @ExcelProperty(value = "统计类型", index = 8)
    private Integer type;

    public String getEffectiveReportRateStr() {
        return effectiveReportRate + "%";
    }

    public String getEffectiveCompleteRateStr() {
        return effectiveCompleteRate + "%";
    }

    public void setEffectiveReportRateStr(String effectiveReportRateStr) {
        this.effectiveReportRateStr = effectiveReportRate + "%";
    }

    public void setEffectiveCompleteRateStr(String effectiveCompleteRateStr) {
        this.effectiveCompleteRateStr = effectiveCompleteRate + "%";
    }
}
